package oop.ex3.nameserver.actions;

import oop.ex3.messages.MessageInterface;
import oop.ex3.nameserver.NSContext;
import oop.ex3.sockets.ClientSocket;

public class GoAway extends NsAction {

	public GoAway(NSContext context) {
		super(context);
	}

	@Override
	public boolean run(ClientSocket socket, MessageInterface msg) {
		_context.shutDownExecutor();
		return sendDone(socket);
	}

}
